package com.huxuesong.prcc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableTransactionManagement
@EnableScheduling
@EnableSwagger2
@MapperScan({"com.huxuesong.prcc.ums.mapper","com.huxuesong.prcc.sys.mapper"})

//public class PrccPortalApplication {
//
//    public static void main(String[] args) {
//
//        SpringApplication.run(PrccPortalApplication.class, args);
//    }
//
//}
public class PrccPortalApplication extends SpringBootServletInitializer {
    // tomcat 部署方法
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(PrccPortalApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(PrccPortalApplication.class, args);
    }
}